﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MeshUVAnim : MonoBehaviour
{
    public MeshRenderer mesh;

    private void OnWillRenderObject()
    {
        mesh.material.SetFloat("_MyTime", Time.unscaledTime);
    }
}
